from distutils.core import setup, Extension

import platform

libs=[]
extra_link_args = []

if platform.system() == 'Linux':
    libs = ['GL', 'GLU']
elif platform.system() == 'Darwin':
    extra_link_args = ['-arch', 'i386', '-arch', 'x86_64', '-framework', 'OpenGL']
elif platform.system() == 'Windows':
    libs = ['OpenGL32']
	
	
setup(name="_fastsprite", version="1.0", ext_modules=[
    Extension("_fastsprite", ["spritemodule.c"], 
              libraries=libs,
              extra_link_args=extra_link_args,
              ),
              ])
